package cn.yangliu.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * the type of com-tool
 *
 * <p>
 * .
 *
 * @author 杨柳
 * @date 2021-09-27
 */
@Entity
@Table(name = "t_setting")
@Data
public class Setting extends AbstractEntity {

    /**
     * 保存名称
     */
    private String name;

    /**
     * 串口
     */
    private String serialPort;

    /**
     * 波特率
     */
    @JSONField(serializeUsing= ToStringSerializer.class)
    private int baudRate;

    /**
     * 数据位
     */
    @JSONField(serializeUsing= ToStringSerializer.class)
    private int dataBits;

    /**
     * 停止位
     */
    @JSONField(serializeUsing= ToStringSerializer.class)
    private int stopBits;

    /**
     * 校验位
     */
    @JSONField(serializeUsing= ToStringSerializer.class)
    private int parity;


}
